﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SistemaBastanteo.Dominio.Cliente>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Create", "Cliente", FormMethod.Post))
       {%>
        <%: Html.ValidationSummary(true)%>

        <fieldset>
            <legend>Campos</legend>
            <%--<!--
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Codigo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Codigo) %>
                <%: Html.ValidationMessageFor(model => model.Codigo) %>
            </div>--%>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Ruc)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Ruc)%>
                <%: Html.ValidationMessageFor(model => model.Ruc)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.RazonSocial)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.RazonSocial)%>
                <%: Html.ValidationMessageFor(model => model.RazonSocial)%>
            </div>
            
            <div class="editor-label">
                Tipo de Empresa
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("CodigoTipo", (IEnumerable<SelectListItem>)TempData["tiposEmpresa"])%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Inicio)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Inicio)%>
                <%: Html.ValidationMessageFor(model => model.Inicio)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Empleados)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Empleados)%>
                <%: Html.ValidationMessageFor(model => model.Empleados)%>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

